package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.IsDel;
import com.lh.common.enums.TrueFalseEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_user_address:收货地址表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_user_address")
@Alias("userAddress")
@Data
@ApiModel("用户地址")
public class UserAddress implements Serializable {
    @ApiModelProperty(value = "")
    @TableField(value = "uaid")
    @TableId
    private Long uaid;

    @ApiModelProperty(value = "用户ID")
    @Column(name = "user_id")
    private Long userId;

    @ApiModelProperty(value = "收货人")
    @Column(name = "recipients")
    private String recipients;

    @ApiModelProperty(value = "收货人手机号")
    @Column(name = "phone")
    private String phone;

    @ApiModelProperty(value = "区域")
    @Column(name = "region")
    private String region;

    @ApiModelProperty(value = "详细地址")
    @Column(name = "detailed")
    private String detailed;

    @ApiModelProperty(value = "邮编")
    @Column(name = "postal_code")
    private String postalCode;

    @ApiModelProperty(value = "")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除 YES:删除NO:未删除")
    @Column(name = "is_del")
    private IsDel isDel;

    @ApiModelProperty(value = "是否是默认地址 TRUE:是FALSE:否")
    @Column(name = "is_default")
    private TrueFalseEnum isDefault;

    @ApiModelProperty(value = "城市")
    @Column(name = "city")
    private String city;

    /**
     * ovmal_user_address
     */
    private static final long serialVersionUID = 1L;
}
